
public class Weapon {
	private String type;
	private int atk;
	private String name;


	public Weapon(String x, String y){
		name = x;
		type = y;
	}

	public String getType(){
		return type;
	}
	
	public int getRange(){
		if (type.equals("bow")||type.equals("magic"))
			return 2;
		else
			return 1;
	}
	
	
	
	public String toString(){
		return name;
	}
}

